package com.jiyun.fegin;

import com.jiyun.common.model.Play;
import com.jiyun.common.model.Team;
import com.jiyun.common.model.TeamVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @projectName: 2210A-project1
 * @package: com.jiyun.fegin
 * @className: PlayFegin
 * @author: 耿嘉军
 * @date: 2023/8/22 10:53
 * @version: 1.0
 */
@FeignClient(value = "day08play")
public interface PlayFegin {

    @RequestMapping("/play/playLoad")
    public Play playLoad(@RequestParam("username") String username,@RequestParam("password") String password);

    @RequestMapping("/team/GameshowTeam")
    public List<Team> GameshowTeam();

    @RequestMapping("/team/findTeamVoByPlayId")
    public TeamVO findTeamVoByPlayId(@RequestParam("playId") Integer playId);

    @RequestMapping("/play/updatePlayPassword")
    public boolean updatePlayPassword(@RequestParam("playId") String playId,@RequestParam("password") String password);

    @RequestMapping("/play/findPlayById")
    public Play findPlayById(@RequestParam("playId") Integer playId);

}
